<template>
  <div>
    <h1>登录页面</h1>
    <p>{{dataForm}}</p>
  </div>
  
</template>

<script>
export default {
  data(){
    return{
      dataForm: {
        name: '',
        id: '',
        image: '',
        publishname: '',
        levelid: 1,
        publishtime: '',
        status: 1,
        detail: '',
        userid: 1
        
      },
      order: '',                  // 排序，asc／desc
      orderField: '',             // 排序，字段
      page: 1,                    // 当前页码
      limit: 10,                  // 每页数
    }
  },
  methods:{
    async getInfo () {
      await this.$http.get(`/bookManagement/books/page?order=${this.order}&orderField=${this.orderField}&page=${this.page}&limit=${this.limit}`).then((res) => {
        console.log(res);
      }).catch(() => {})
    },
  },
  mounted(){
    this.getInfo();
  }
}
</script>

<style>

</style>